package cate.common.table.item.yoke.sheet;

import cate.common.table.ESheet;
import cate.common.table.item.yoke.row.YokeStarLimitRow;

public class YokeStarLimitSheet extends ESheet<YokeStarLimitRow> {
    @Override
    public String getSheetName() {
        return "羁绊英雄星级限制";
    }

    public YokeStarLimitRow getRowByStar(int star) {
        for (YokeStarLimitRow row :
                getList()) {
            if (row.masterStar == star) {
                return row;
            }
        }
        return null;
    }
}
